#include "myqgraphicsview.h"

MyQGraphicsView::MyQGraphicsView(QWidget *parent): QGraphicsView(parent){
}
void MyQGraphicsView::mouseDoubleClickEvent(QMouseEvent * e){
  QPointF pt = mapToScene(e->pos());
  posX = pt.x();
  posY = pt.y();
  qDebug() << posX <<" " << posY;

}
int MyQGraphicsView::getLastPosX(){
  return posX;
}
int MyQGraphicsView::getLastPosY(){
  return posY;
}
